<?php
Class Award_Model extends CI_Model{
    function insert($username)
    {
        $type = $this->input->post('type');
        $title = $this->input->post('title');
        $year = $this->input->post('year');
        $comment = $this->input->post('comment');
        $data = array(
            'name' => $username,
            'title'=> $title,
            'year' => $year,
            'type' => $type,
            'comment'=> $comment
                );
        $this->db->insert('award',$data);
        
        
    }
}